//
//  CCMBaseTableViewController.swift
//  CCMoney_swift
//
//  Created by JKHuang on 2018/11/22.
//  Copyright © 2018 JKHuang. All rights reserved.
//

import UIKit

class CCMBaseTabBarController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let home = CCMHomeVC()
        home.tabBarItem = UITabBarItem(title: "工作台", image:UIImage(named: "icon-首页-灰"), selectedImage: UIImage(named: "icon-首页-彩"));
        let homeNVC = CCMBaseNavigationController(rootViewController:home)
        
        let ccmoney = CCMCCMoneyVC()
        ccmoney.tabBarItem = UITabBarItem(title: "CCM", image: UIImage(named: "icon-CCM-灰"), selectedImage: UIImage(named: "icon-CCM-彩"))
        let ccmoneyNVC = CCMBaseNavigationController(rootViewController: ccmoney)
        
        let mine = CCMMineVC()
        mine.tabBarItem = UITabBarItem(title: "我的", image: UIImage(named: "icon-我的-灰"), selectedImage: UIImage(named: "icon-我的-彩"))
        let mineNVC = CCMBaseNavigationController(rootViewController: mine)
        
        viewControllers = [homeNVC, ccmoneyNVC, mineNVC]
        
        self.tabBar.barTintColor = UIColor.hex(0x3C4564)
        self.tabBar.tintColor = UIColor.hex(0xA974FF)
        self.tabBar.isTranslucent = false
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}
